
        dp[i] = max(dp[i], dp[j] + 1);